﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.Data
{
    /// <summary>
    /// 可查询对象
    /// </summary>
    public interface IQuery<TEntity>
    {
        /// <summary>
        /// 查询接口
        /// </summary>
        IQueryable<TEntity> AsQuerybale { get; }

        /// <summary>
        /// 动态过滤
        /// </summary>
        /// <param name="predicate"></param>
        void WithWhere(string predicate);
    }
}
